package cn.stylefeng.guns.modular.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author ZhangJun
 * @since 2019-06-25
 */
@TableName("zj_after_sale")
public class AfterSale implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 消费者姓名
     */
    @TableField("consumer_name")
    private String consumerName;

    /**
     * 联系方式
     */
    @TableField("consumer_phone")
    private String consumerPhone;

    /**
     * 售后地址
     */
    @TableField("consumer_address")
    private String consumerAddress;

    /**
     * 需要维修的产品Id
     */
    @TableField("trouble_product")
    private Long troubleProduct;


    /**
     * 问题种类
     */
    @TableField("trouble_type_id")
    private Long troubleTypeId;

    /**
     * 经销商维修人员
     */
    @TableField("dealer_maintainer_id")
    private Long dealerMaintainerId;

    /**
     * 工厂维修人员
     */
    @TableField("product_maintainer_id")
    private Long productMaintainerId;

    /**
     * 售后维修人员的联系方式
     */
    @TableField("maintainer_phone")
    private String maintainerPhone;

    /**
     * 预计到场时间
     */
    @TableField("predict_arrival_time")
    private Date predictArrivalTime;

    /**
     * 消费者提供的问题图片
     */
    @TableField("trouble_picture")
    private String troublePicture;

    /**
     * 维修前图片
     */
    @TableField("before_picture")
    private String beforePicture;

    /**
     * 维修后图片
     */
    @TableField("after_picture")
    private String afterPicture;

    /**
     * 配件选件//关联产品分类表
     */
    @TableField("product_type_id")
    private Long productTypeId;

    /**
     * 维修信息
     */
    @TableField("maintain_information")
    private String maintainInformation;

    /**
     * 评价
     */
    @TableField("evaluate")
    private String evaluate;

    /**
     * 状态值
     */
    @TableField("status")
    private Integer status;

    /**
     * 售后单号
     */
    @TableField("after_sale_order")
    private String afterSaleOrder;


    /**
     * 销售人员
     */
    @TableField("sales_user_id")
    private Long  salesUserId;

    public String getProcessInstanceId() {
        return processInstanceId;
    }

    public void setProcessInstanceId(String processInstanceId) {
        this.processInstanceId = processInstanceId;
    }

    @TableField("process_instance_id")
    private String processInstanceId;

    public Long getSalesUserId() {
        return salesUserId;
    }

    public void setSalesUserId(Long salesUserId) {
        this.salesUserId = salesUserId;
    }

    public String getAfterSaleOrder() {
        return afterSaleOrder;
    }

    public void setAfterSaleOrder(String afterSaleOrder) {
        this.afterSaleOrder = afterSaleOrder;
    }

    public Long getAddressId() {
        return addressId;
    }

    public void setAddressId(Long addressId) {
        this.addressId = addressId;
    }

    /**
     * 地址id
     */
    @TableField("address_id")
    private Long addressId;

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @TableField("create_time")
    private Date  createTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getConsumerName() {
        return consumerName;
    }

    public void setConsumerName(String consumerName) {
        this.consumerName = consumerName;
    }

    public String getConsumerPhone() {
        return consumerPhone;
    }

    public void setConsumerPhone(String consumerPhone) {
        this.consumerPhone = consumerPhone;
    }

    public String getConsumerAddress() {
        return consumerAddress;
    }

    public void setConsumerAddress(String consumerAddress) {
        this.consumerAddress = consumerAddress;
    }

    public long getTroubleProduct() {
        return troubleProduct;
    }

    public void setTroubleProduct(Long troubleProduct) {
        this.troubleProduct = troubleProduct;
    }

    public Long getTroubleTypeId() {
        return troubleTypeId;
    }

    public void setTroubleTypeId(Long troubleTypeId) {
        this.troubleTypeId = troubleTypeId;
    }

    public Long getDealerMaintainerId() {
        return dealerMaintainerId;
    }

    public void setDealerMaintainerId(Long dealerMaintainerId) {
        this.dealerMaintainerId = dealerMaintainerId;
    }

    public Long getProductMaintainerId() {
        return productMaintainerId;
    }

    public void setProductMaintainerId(Long productMaintainerId) {
        this.productMaintainerId = productMaintainerId;
    }

    public String getMaintainerPhone() {
        return maintainerPhone;
    }

    public void setMaintainerPhone(String maintainerPhone) {
        this.maintainerPhone = maintainerPhone;
    }

    public Date getPredictArrivalTime() {
        return predictArrivalTime;
    }

    public void setPredictArrivalTime(Date predictArrivalTime) {
        this.predictArrivalTime = predictArrivalTime;
    }

    public String getTroublePicture() {
        return troublePicture;
    }

    public void setTroublePicture(String troublePicture) {
        this.troublePicture = troublePicture;
    }

    public String getBeforePicture() {
        return beforePicture;
    }

    public void setBeforePicture(String beforePicture) {
        this.beforePicture = beforePicture;
    }

    public String getAfterPicture() {
        return afterPicture;
    }

    public void setAfterPicture(String afterPicture) {
        this.afterPicture = afterPicture;
    }

    public Long getProductTypeId() {
        return productTypeId;
    }

    public void setProductTypeId(Long productTypeId) {
        this.productTypeId = productTypeId;
    }

    public String getMaintainInformation() {
        return maintainInformation;
    }

    public void setMaintainInformation(String maintainInformation) {
        this.maintainInformation = maintainInformation;
    }

    public String getEvaluate() {
        return evaluate;
    }

    public void setEvaluate(String evaluate) {
        this.evaluate = evaluate;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "AfterSale{" +
        "id=" + id +
        ", consumerName=" + consumerName +
        ", consumerPhone=" + consumerPhone +
        ", consumerAddress=" + consumerAddress +
        ", troubleProduct=" + troubleProduct +
        ", troubleTypeId=" + troubleTypeId +
        ", dealerMaintainerId=" + dealerMaintainerId +
        ", productMaintainerId=" + productMaintainerId +
        ", maintainerPhone=" + maintainerPhone +
        ", predictArrivalTime=" + predictArrivalTime +
        ", troublePicture=" + troublePicture +
        ", beforePicture=" + beforePicture +
        ", afterPicture=" + afterPicture +
        ", productTypeId=" + productTypeId +
        ", maintainInformation=" + maintainInformation +
        ", evaluate=" + evaluate +
        ", status=" + status +
        "}";
    }
}
